import { RMIProxyObject } from "../../Engine/RMI/RMIProxyObject";
import { ITitlePrx } from "./ITitlePrx";
import { AMI_ITitle_enableTitle } from "./AMI_ITitle_enableTitle";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { Outgoing } from "../../Engine/RMI/Outgoing";
import { AMI_ITitle_hideTitle } from "./AMI_ITitle_hideTitle";
import { AMI_ITitle_notShowTitle } from "./AMI_ITitle_notShowTitle";
type int = number;
//class ITitlePrxHelper
    
    export  class ITitlePrxHelper extends RMIProxyObject implements ITitlePrx
    {
        constructor()
        {
            
            super();name = "ITitle";
            return;
        }

        public enableTitle_async(arg1: AMI_ITitle_enableTitle, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("enableTitle");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public hideTitle_async(arg1: AMI_ITitle_hideTitle): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("hideTitle");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public notShowTitle_async(arg1: AMI_ITitle_notShowTitle, arg2: Boolean): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("notShowTitle");
            var loc3;
            (loc3 = new SerializeStream()).writeBool(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public static /* const */NAME: string="Message.Game.ITitle";
    }
